Write-Host "正在启动HTTP服务器..." -ForegroundColor Green
Write-Host ""
Write-Host "请确保以下文件存在：" -ForegroundColor Yellow
Write-Host "- dashboard - 分离图表数据-json加载.html" -ForegroundColor Cyan
Write-Host "- dashboard-data.json" -ForegroundColor Cyan
Write-Host ""
Write-Host "服务器启动后，请访问：" -ForegroundColor Yellow
Write-Host "http://localhost:8000/dashboard - 分离图表数据-json加载.html" -ForegroundColor Cyan
Write-Host ""
Write-Host "按 Ctrl+C 停止服务器" -ForegroundColor Red
Write-Host ""

try {
    python -m http.server 8000
} catch {
    Write-Host "启动失败，请确保已安装Python" -ForegroundColor Red
    Write-Host "或者使用其他HTTP服务器工具" -ForegroundColor Yellow
}

Read-Host "按回车键退出" 